switchpool method added