added support for attribute changes