added indexes to createcards