updated for new sbm structure