change INVALID_TICKS value to MAX UINT