#4: fixed _closest method