added steane code stuff