allow for writing out the Maxwell potential