fix math to be share based