updated position.lua