fixed major inefficiency in share checking