use let keyword on spec to remove duplication