creation of  stack and cluster