ok, I think I fixed the scope issue