created code to run on cluster