helper to get current data.