moved the printing to the bottom