generate binary output