added typedef to slist