debug first phase