uncommenting the parts of code that caused the bug