Change P, H and table