updated cluster submit code