creating card hash