optimized the option<a> seq -> a seq function.