modify select.c for test