extraneous printf removed