changed to use bytestring