improved creation of previous_wyd