double-checking that 'nearest mouse' functions are coorect