fixed the function names and improved comments