added md to functions