makes resultsList func