debug finish