small refactoring stockcontroller