refactor states constants