update to new output format (0 / 1)