pearsons cross, some errors fixed