added code for PA