Study of neutron rich Carbon and Oxygen nuclei up to drip line