Remove unnecessary toSeq