clustering functionality added