modified code for new experiments