setAttribute refactored, working on task AST