store quantity and position number in a position