changed variable names for readability
minor changes for readability