maxdist 0.5 applied