refactor specs syntax