corr function dev stage