added offset and limit to fetch