modified to be more generic.  Works for 6.5 and 7.0.