the method that generator calls was moved to Globals