started refectoring to fully use reddit code