still need instructions - cleaned up code