readCards func