added quests function