add instruction
new variables name
fix position offset bug