Symmetry energy in neutron star matter