Modernization of steam and water boilers