change pool structure, fix a bug