going over n+1 query issues