updating sm file