improve debug print