refactoring, percentcalc, starting ltm mode