debug insertion problem