change top to down and bottom to down