mark: trying to work out how to do correlation stuff