renamed variables for readability