remove unuse lines
refactor get instruction by index part