using assign method as the operator= might not be called and a copy constructor is called which is not wanted at this moment