added condition to delete comment