finally got refrencing to work!!!