added enableAttribute method