use priority for other attributes
add tests