spider function complete