removed variable numProtocolApplications.