getting offset