fixed testing error. need to make a test file