finish day 29 logic