first attempt at a PID block