insert debug method