remove getInstancePosition function