small refaktoring