tick optimization