adjusted the use of auto-complete-mode