replace ? to 0/1