bool -> 0/1