removal of unused variables in md.c