add insert and outPut