added trans-unit and fixed ab bug