corrected spec helper