barra data processing code