format boolean value