about to add gain, min, max with squares