a method getting and formatting state sequence not ready yet