not returning CardProfileInfo struct correctly