fix a error, add something for testing