refactored the experiment