cleanup binary data