updated version of distribute