mill , in elaborating and refining this principle , partly abandoned the greatest good idea and instead maintained that one should consider the quality , or type , of pleasure as well as the quantity .