ended functionality to reverse stydying