auth function and dictionary select