updated save method, added setters for id and isNew