little bit of scoping