shiftby function added to byteset
shiftoffset fixed