prepare to files