adding functionality to credit card details