simplify map's block

small re-factoring.
I'm not sure if this if better practice.

thanks :)