removed a redundant declaration in mag.cpp