new fomula
fixed bug in formula