changes to CRP3d. Added dampfunction