added density classifier