sorted out up and down