update formula, see 227 for new formula