refactored streamContent