working on two sided erf