get reference from sgid