certain function names and its datatypes have been refactored.