updated formula, + nicer form