docs for save method