drop function sort of working now