improve the adding of records