modify scripts for series of analysis