removed ref in constructors