updated script for 16 cores