remove parfor from sn.m