re-spider function