fix bug, add 3rd autodim