scp function edits