code from brown

scripts to use later