victory, at last! fixed critical bug