fix profile graph so it now matches the profile graph in the shiny app.