improved tau optimization