added some guilds code