a mystic error with scope of 'weight' argument