were gilds