added adjust rhythm for density