changed order of class variable initializations to make easier to read