batch delete added with bugs