modified to remove an arbitrary s-expression from a list of s-expressions;