trying to move obj out of scope