added feature to reduce unnecessary dimensions by specifying clusters pre-step