moved dependencies to top of class