testing the dragging function