added some minor corplot code