added the ability to set mass