Use select instead of if len < cap