near detector