moving the print statement