refactored the specs to improve readability