added magical hierarchy