adding as bytes method