adding the minimize to terminals