Update subfunction 3