adding some small improvements to the reddit example