reddit-related code