for mass calculation