simplification of maps grammar