add offset into get activities function