corrected names of functions and variables