script for data processing