making distribute work