changed 'set' variable to 'df' for clarity