added in scope and closures a bit