small refractoring to comply with ruby conventions