move the ref id to be the first