update save() method definition