simplify SNL code