delete trail param in drag function