adding function base to auto select doc