isolating scope
fixing escaping problems