added dropping items function