Removing reference code

Unneeded older code