finished checking simple functions