changed offsets to signed