adding error message to deletion