improve auto timing