n+1 problem for cards in home solved