support for mass in meanstructure.m