added full papi function