added average mass print statement