implementing table stream