added stream to aid in processing multiple lines