call to a member function getapipath on array