replace on/off by TRUE/FALSE