refine the usage of csr.