use get method for stream