added convenience function elementType

This is not an accurate description of what this is doing.