clean up md