added multiply-add-accumulate math logic. comment is for dan.