changed order of initialisation