change function names and fix spelling
change function names and fix spelling