cleaning up the result