fixed the unfolding