renamed functions and variables for code readability