improvment in data insertion