changed dz functionality