use clustering for the positions
merged