adapted id parameter type for element classes