fix initilization method