use ets:next to find the nearest node, it was fast than ets:select