refactored the guild jade file