find distinct positions