map code compiles