copying over stuff from previous codeing