added direct correlation function