convert output to binary