added validation on butterfly insert