correct tick encoding