added getReference method