test compilation
fix distributeApply