n functions