added function returns & MYBF calculation