pulled experiment code out of test file