modifying reddit script a bit