giving a try at simplifying auto_complete