bugfix
add correlated pattern functions