corrections to basic routines for maxwell