preload both P arrays