deepak's stacked bars code and trajectories update