use saveAndSetTotal() method