changed density method