made some changes to the summoner function