made it possible to return the diff