revertBack and ranking states is complete