utility method to create maps