insertData method finished