dupulicate and nil solve