clean up social code