added function runS to SF