refactoring course inputs