added offset code