fixing sprintf file