corrected output for tidy dataset