* better build_select() function