Changed Seq.apply() to seq()