add WPT variable to unfolding code