prints a map