remove unnecessary toSeq