refactor offsets var
remove some public vars