changed Sequence to SequenceType for Xcode 6 beta 5 compatibility