fixed insert and stuff

insert works perfectly including parenting