fixed flash code