offset functions added