fixed bug in insert removed debug