changed the scoping mechanism for sequence expressions