added some formulas from google stuff