setting up unfolding