normalize positions