add cross plot function