fix find bug and improve output formatting