added initialisation of H and P