improve de-nastification for lists