create save method