update restored function