edit ai and spawn