remove close scope