renamed variables for better understanding