trying to revert to previous state