use scope and resolve n+1 query