streams methods and type