added behaviour for the spider