added hat spawner