script for cluster