move print statement