refactor and bugFix
Change Priority in Attributes