small changes in mv functions