Use select instead of reject