Remove obsolete code
replace property by attribute