removed closing of out of scope statement