to make the return value of stream type ok