auto complete completed for reference codes