added function to make condor script