changes to the profile plotting