MAINT: call a newer function instead of an older worse function