cosmetic refactor for specs