making a mess of scoping