rewrite share functionality
fix merge conflict
erasing unnecesary