function names were wrong