refactoring maplist-with-no with map-indexed