adding a testing function --David Caratelli