added cluster code