adjust the positions