rename and check for itext on the second condition