added cannon state code