remove scanBytes as it is unnecessary