adding ref thing