refactored variable names to be more clear