add stream vs promises code