besides he devoted to building works of temples and social welfare