fix retraction and part of sharing