remove no effective code in select function