made minimal changes to particle spawner;