changed variables to be more readable