trigger spawn functions