added assignment operators to ref