src: small refrator