remove stupid end's