added some stuff to insert