changed the position of the print statement to print frist and then execute the line