correcting function naming