fixed some bugs to test file