update apply prefab routine