change false/true to 0/1