renamed function names.