scope is completely rewritten