added function md