fixed error with diamond opertator