use squared distance with bonus=1