change getReference api