save method saved changes on the making