code changes to make the specs pass.