changed data insertion method