Revert "test"

This reverts commit a67339a6fea156137fa4f51bd68fcbb5b970fe2a.
Revert "changed error check"

This reverts commit 62d8713f45e9e7c359591c1f7683383e6a525162.