before reading realtime data