printMessage is moved up