make data generating function more generic; fix correlated experiment