updated pid regulator with norm