changed offsets back to the vectors compatible version