find sigma in another function