cleaning up md