new wall mass function