offset functions fixed