Revert "remove unused attribute"

This reverts commit 9566bf9dd8fee853c16176b660e07782eda11499.