added parameter for specifing class loading iteration