removed missing layers from P / R matrix