change the closed density since it output the wrong data