update code for showAPList