adding sctipt to make bathc effect data