vhanged drop function