added new plotting functions