fixed compiler warnings related to twsited mass stuff