cut out unnecessary attrs