for molecular weight calculation