1. can move to a helper?
2. going to be lots of queries for large data set