updated code sequence code