clean up Ap