fixing distribution issues