fixed all the notes by luca exept for that on the closest point function