updated save method, ref #90