adding stream close