only use for test.