added examples, fix when clusters are used