removes n+1 issues