changed format to binary to get proper data