code clean up for pa recents