remove unnecessary attrs var