fix print statement before assignment