new functions for plotting cross section