check element type