outlined TP parameter optimization
finished issue #79