use obj in scope