code sequence fix