revert previous code