fixed distribution code