get attribute type