for indicating end of flow