fixed using `closest`