modified variable names for clarity