moved print statement