printing left and right but not up and down