using offset instead of client.