adding utilities
adding function to check if map is possible