implemented buildStream