remove card list function