add end and shares