added density bug correct