fixed up plotting