add exit and delete