electromagnetic mechanism