add Get method for attr