changing to plt namespace for plotting