operating with electromagnetism