adding setcard logic