added formula and constants