changed variable names for better interpretation