add script to evaluate number of states