added offset feature