updated p4 var to use