PA1 function finished