add getType (not used yet)