prototype getPCdata() function