files moving algorithm as do not overwritten