fix a bug of provided card
set 2 functions to be inline