add extra check when building helper table