update to unit spawn.