getting positions in list