fix return data order

improve debug info