adding a function for scp