code for ncg vs cr plots added