moving explicit declare to top of routes