modified spec helper