overwritten save method.