working with resources
laziness of stream