somewhat working solution for cards