small refactories