improved result formatting