remove comments and revert code to the chained context managers