add printBytes method