remove unnecessary attr