MAINT: use maximum instead of clip