fix a bug from previous commit
rename position varible