removed use of attr