added bivar plot function