add select for finction