parse the positions