File is being modified with (a+b)^2 and (a+b+c)^2