changed the order of variable declarations

just to make it a little nicer.