added script for parallel computation