bug in delete(...) fixed