revert changes that caused program doesn't work