changed the variable and function naming