prints out search terms in order