move stuff to methods