better buildMap parameters