renamed variables to match snake_case convention