trying without distanceto cw function