xs -> md