move stuff to the scope