modified following the change of convert.pl