fixed retrieve md