modified plotting functions