remove redundant attribute access