use the highest priority attr
Merge pull request #7 from chamankang/master

use the highest priority attr