started working on softmin