simplify attributes computation