removed dsm() prints.