update close and effect