updated formula for minor changes