separate element and device class