save method fixed