allowed reversions function returns array of states