updates scope