better function for unnamed maps