relaxation terms calculation added