changing the way of selecting the markers