minor change to states.js