removed explicit from ref constructors