fixed the SList.contains method