extract bits modified

testing offset and n-bits