adding dropping logic