simplify select_type method