update attr accessor