reverting code back to good stage