added density to the output