. . "municipal corporations, such as the city, only when they were engaged in" . .