remove printf and rename file