added blocmetrics code