groundwork for social media sharing, minimize lines of code