extracting gapi