perge and add script for data