mov squash into separate function