The principles of the law of restitution