fixed up generalization for scholar demo