add text and remove file