update a spec to work with two global variables