test code, but not effective.