little changes in insert script