reject over map with next and compact