fixing printf format code