code for processing telemetry data