added multilayer cluster code