implements boolean auto complete