utility function added for maps