updated the ref pos