better search output formatting