small refactor of specs