work on auto select