prep work for results page