moved up spec variables to the top of file