added dropping functionality