soft mode and hard mode