changed function names to camelCase