adding in process protected funciton helper