pp code for the correlation analysis