plotting fixes