code for experiments