make save method return an entity