we need two separate callbacks (one for bool one for float).