removed unecessary drag code