check data an insert