moved doug's version to the top