added changes to pgm convert util