refactored stream coverage