drop function updated front and back-end