improved density extension