add getting card fuctionally