periodic spawning and flying