small refactor spec