adding attribute value to return type