share buying functionality