slight tweaking of the formula