fixed simpearson calculation