updated some code and added new pearson code