added auto-complete hook