made pull variable global for testing