added convenience function elementType

New line before.