remove refence magic