base codes for experiments