add exception to empty map() call