minor styles fixes

minor styles fixes
minor calculation fix

minor calculation fix