implemented statistics and borderflow extension for clustering