few bugs in delete methods
bugs in delete methods