there has got to be a simpler method for testing