add attr accessor