remove nearby function