changes save method