added molecular formula method