trying to fix the scope problem #147