added twitter function