changed function names to lowercase and underscore